#ifndef DAEMON_H
#define DAEMON_H

#include <QObject>
#include <QSharedMemory>
#include <QTimer>
#include <windows.h>
#include <QRect>

class Daemon: public QObject
{
    Q_OBJECT
private:
    QSharedMemory *sharedMemory;
    int pthreadId;
    QTimer timer;
    int MAX_WIDTH, MAX_HEIGHT;

    RECT flush_and_get_rect(ULONG);
public:
    Daemon(QString, int, int, int);
    ~Daemon() override;
private slots:
    void readData();
};

#endif // DAEMON_H
